package com.bobo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Voucher implements Serializable {
    //优惠券id
    private Long id;
    //抵扣价格
    private double originalPrice;
    //优惠券价格
    private double price;
    //优惠券数量
    private Integer stock;
    //优惠券起始时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime startTime;
    //优惠券结束时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime endTime;
    //优惠券状态  0停售 1起售
    private int status;
    //优惠券名称
    private String name;
}
